class AdvanceApprovalQuery:
    def __init__(self, advance_approval_id=None, advance_id=None, payment=None, finance_id=None, date=None):
        self.advance_approval_id = advance_approval_id
        self.advance_id = advance_id
        self.payment = payment
        self.finance_id = finance_id
        self.date = date

    def to_dict(self):
        return {
            'advance_approval_id': self.advance_approval_id,
            'advance_id': self.advance_id,
            'payment': self.payment,
            'finance_id': self.finance_id,
            'date': self.date.isoformat() if self.date else None
        }
